package com.hhkj.study.admin.article.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BizBaseEntity;
import com.ruoyi.common.valid.VAdd;
import com.ruoyi.common.valid.VDisable;
import com.ruoyi.common.valid.VEdit;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@TableName(value = "x_article_exam_flow")
@EqualsAndHashCode(callSuper = true)
@Data
public class ArticleExamFlow extends BizBaseEntity {

	/**
	 * 名称
	*/
	@NotBlank(message = "名称不能为空", groups = VAdd.class)
	private String name;
	/**
	 * 副标题
	*/
	@NotBlank(message = "副标题不能为空", groups = VAdd.class)
	private String subTitle;
	/**
	 * 课程大类,字典表中id
	 */
	private String courseTypes;
	/**
	 * 所在区域,关联x_dict_multi_level表id
	 */
	private String provinceIds;
	/**
	 * 资讯,关联x_article表中id
	*/
	private String articleIds;
	/**
	 * 上架标记（0-下架， 1-上架）
	*/
	@NotNull(message = "上架标记不能为空", groups = {VAdd.class, VDisable.class})
	private Integer publishedFlag;
	/**
	 * 排序序号
	*/
	private Integer orderNum;

	@NotEmpty(message = "课程类型不能为空", groups = VAdd.class)
	@TableField(exist = false)
	private List<Long> courseTypeList;

	@NotEmpty(message = "所属区域不能为空", groups = VAdd.class)
	@TableField(exist = false)
	private List<Long> provinceIdList;

	@NotEmpty(message = "关联的资讯不能为空", groups = VAdd.class)
	@TableField(exist = false)
	private List<Long> articleIdList;

}